package day03;

import java.util.Scanner;

public class test01 {
    public static void main(String[] args) {
        //回文数倒序输出和判断
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

        int temp = n;
        int m = 0;

        while (n != 0){
            int g = n % 10;//10取余为取个数
            n /= 10;
            m = m * 10 + g;

        }
        System.out.println(m);

        if(temp == m){
            System.out.println("right");
        }else {
            System.out.println("error");
        }


    }

}
